CollectionView::DoSelect
Section: ET++ method description (n)
Updated: automatically Mon Apr 8 20:18:15 1991
Index
Return to Main Contents
NAME
CollectionView::DoSelect - instance method
TEMPLATE
void DoSelect(Rectangle selection, int clicks)
SPECIFIERS
public
virtual
DESCRIPTION
DoSelect is called by the method DoSelect2 when the CellSelector created by the method DoLeftButtonDownCommand has finished and at least one cell has been selected. By default, it notifies the next handlers through the method Control by sending the id of this, either const cPartCollDoubleSelect or const cPartCollSelect as part code and the row number of the selected cell.
Clients that wish to be informed about selection events have two possibilities:
1. install themselves as next event handler of a CollectionView and override the method Control
2. directly override DoSelect, check the selection and react appropriately.
Method is sometimes overridden.
ARGUMENTS
- Rectangle selection
-
see instvar selection
- int clicks
-
specifies whether cells have been selected with a single or double click. If clicks is greater than 1, then the next handlers are notified with cPartCollDoubleSelect, otherwise with cPartCollSelect.
RETURN ARGUMENT
void
CATEGORIES
selection, overrider interface, implementation
FIRST DEFINITION
class CollectionView
FILES
- implementation:
-
CollView.C
KNOWN PROBLEMS
DoSelect passes only the row number of the selected cell (selection.origin.y) to Control. It should rather send a reference to selection.
Index
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FIRST DEFINITION
-
- FILES
-
- KNOWN PROBLEMS
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:30 GMT, March 30, 2022